/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 仓库库存Entity
 * @author 仓库库存
 * @version 2019-12-29
 */
public class StockWarehouse extends DataEntity<StockWarehouse> {
	
	private static final long serialVersionUID = 1L;
	private int number;		// 数量
	private String name;		// 名称
	private Woods wid;		// 货物id
	private Warehouse whid;		// 仓库id
	
	public StockWarehouse() {
		super();
	}

	public StockWarehouse(String id){
		super(id);
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
	
	@Length(min=0, max=255, message="名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Woods getWid() {
		return wid;
	}

	public void setWid(Woods wid) {
		this.wid = wid;
	}
	
	public Warehouse getWhid() {
		return whid;
	}

	public void setWhid(Warehouse whid) {
		this.whid = whid;
	}
	
}